/******************************************************************************/
/* main.ccp : zzg Version 1.3                                                 */
/* A C++/Qt4 program : to plan scheduled computer shut down                   */
/* Ptyxs (Cassian Braconnier) - july 2010                                     */
/* Lic. GPLv3                                                                 */
/* Provided with no guaranty whatsoever.                                      */
/******************************************************************************/

//------------------------------------------------------------------------------

#include <QApplication>
#include <QLibraryInfo>
#include <QLocale>
#include <QTranslator>

#include "mainwindow.h"
#include "generalfunctions.h"

//------------------------------------------------------------------------------

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    app.setApplicationName("Zzg"); // indispensable pour Phonon/DBUS

    nonAsciiDisplay();

    // traduction des textes de boutons standars
    QTranslator qtTranslator;
    qtTranslator.load(
            "qt_" + QLocale::system().name(),
            QLibraryInfo::location(QLibraryInfo::TranslationsPath)
            );
    app.installTranslator(&qtTranslator);


    MainWindow zzg;

    centerWidget(zzg, app);

    zzg.show();

    return app.exec();

}

//------------------------------------------------------------------------------

//FIN main.cpp
